package com.greenlaw110.cimple.aaa;

import org.osgl.aaa.*;
import org.osgl.util.C;

import java.util.Collection;

/**
 * Created by luog on 8/06/15.
 */
public class AppAuthorizationService implements AuthorizationService {

    @Override
    public Privilege getPrivilege(Principal principal, AAAContext aaaContext) {
        return null;
    }

    @Override
    public Collection<Role> getRoles(Principal principal, AAAContext aaaContext) {
        return C.list();
    }

    @Override
    public Collection<Permission> getPermissions(Principal principal, AAAContext aaaContext) {
        return C.list();
    }

    @Override
    public Collection<Permission> getAllPermissions(Principal principal, AAAContext aaaContext) {
        return C.list();
    }

    @Override
    public Collection<Permission> getPermissions(Role role, AAAContext aaaContext) {
        return C.list();
    }
}
